package com.nf.action;

import com.nf.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestAction {

    @ResponseBody
    @RequestMapping("/ttta")
    public Student xxx(){
        Student s = new Student();
        s.setUserName("刘德华");
        s.setSex("男");
        return s;
    }
}
